<?php

namespace ApiBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Company
 *
 * @ORM\Table(name="company", options={"comment":"企业表"})
 * @ORM\Entity
 */
class Company
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var \ApiBundle\Entity\Admin
     *
     * @ORM\ManyToOne(targetEntity="ApiBundle\Entity\Admin")
     * @ORM\JoinColumn(name="admin_id", referencedColumnName="id")
     */
    private $admin;

    /**
     * @ORM\ManyToOne(targetEntity="ApiBundle\Entity\District")
     * @ORM\JoinColumn(name="district_id", referencedColumnName="id", nullable=true)
     */
    private $district;

    /**
     * @var \ApiBundle\Entity\CompanyAttribute
     *
     * @ORM\ManyToOne(targetEntity="ApiBundle\Entity\CompanyAttribute")
     * @ORM\JoinColumn(name="company_attribute_id", referencedColumnName="id")
     */
    private $companyAttribute;

    /**
     * @var \ApiBundle\Entity\CompanyCategory
     *
     * @ORM\ManyToOne(targetEntity="ApiBundle\Entity\CompanyCategory")
     * @ORM\JoinColumn(name="company_category_id", referencedColumnName="id")
     */
    private $companyCategory;

    /**
     * @var string
     *
     * @ORM\Column(name="name", type="string", length=255, unique=true, options={"comment":"名称"})
     */
    private $name;

    /**
     * @var string
     *
     * @ORM\Column(name="fr_name", type="string", length=12, options={"default":"", "comment":"企业法人"})
     */
    private $frName;

    /**
     * @var string
     *
     * @ORM\Column(name="reg_cap", type="integer", options={"default":0, "comment":"注册资金 单位:万"})
     */
    private $regCap;

    /**
     * @var string
     *
     * @ORM\Column(name="credit_code", type="string", length=30, options={"default":"", "comment":"	统一社会信用代码"})
     */
    private $creditCode;

    /**
     * @var string
     *
     * @ORM\Column(name="enterprise_status", type="string", length=6, options={"default":"", "comment":"经营状态 在营、注销、吊销、其他"})
     */
    private $enterpriseStatus;

    /**
     * @var string
     *
     * @ORM\Column(name="enterprise_type", type="string", options={"default":"", "comment":"企业类型 有限责任公司、股份有限责任公司、个人独资企业、合伙企业"})
     */
    private $enterpriseType;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="es_date", type="datetime", nullable=true, options={"comment":"开业日期"})
     */
    private $esDate;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="open_from", type="datetime", nullable=true, options={"comment":"经营期限自"})
     */
    private $openFrom;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="open_to", type="datetime", nullable=true, options={"comment":"经营期限至"})
     */
    private $openTo;

    /**
     * @var string
     *
     * @ORM\Column(name="address", type="string", length=255, options={"default":"", "comment":"注册地址"})
     */
    private $address;

    /**
     * @var string
     *
     * @ORM\Column(name="operate_scope", type="text", options={"default":"", "comment":"经营(业务)范围"})
     */
    private $operateScope;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"更新时间"})
     */
    private $updatedAt;

    /**
     * @var bool
     *
     * @ORM\Column(name="status", type="boolean", options={"default":1, "comment":"状态 1启用 0禁用"})
     */
    private $status;
    
}
